using System;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Collections.Generic;

using Com.Grubbland.Data.Objects;
using Com.Grubbland.Data.Access;


/// <summary>
/// Summary description for LoginService
/// </summary>
[WebService(Namespace = "http://eelms.grubbland.com/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class LoginService : System.Web.Services.WebService {

    UserServiceImpl _svc = new UserServiceImpl();

    public LoginService () {

        //Uncomment the following line if using designed components 
        //InitializeComponent(); 
    }

    [WebMethod]
    public string HelloWorld() {
        return "Hello World";
    }

    [WebMethod]
    public string VarLoader()
    {
        return "Hello World";
    }

    [WebMethod]
    public EdutaterUser EdutaterLogin( EdutaterUser u )
    {
        return _svc.GetEdutaterUser(u);
    }

    [WebMethod]
    public EdutaterUser RegisterEdutaterUser(Registration user)
    {
        int i = 0;
        return _svc.RegisterEdutaterUser(user);
    }

    [WebMethod]
    public string GetUserPassword(String user)
    {
        return _svc.GetUserPassword(user);
    }
    
}

